package model.messages;

import model.PokerTP.Card;
import model.PokerTP.Deck;

public class PlayerNewCards {
	public PlayerNewCards(Card[] cards) {
		super();
		this.cards = cards;
	}
	public PlayerNewCards(Deck deck, int cardsNum) {
		if(cardsNum <= 0) throw new IllegalArgumentException();
		cards = new Card[cardsNum];
		for(int i = 0; i < cardsNum; ++i) {
			cards[i] = deck.wypiszzTali();
		}
	}

	public final Card[] cards;
	
}
